package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.SysEmpRole;
import com.ftg.product.exam.entity.SysRole;
import com.ftg.product.exam.entity.SysEmployee;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 员工角色中间表 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class SysEmpRoleDTO extends SysEmpRole  {
    private static final long serialVersionUID = 7424185550332235973L;

    /**
    * 关联字段 SysRole.rolename
    */
    @BindQuery(comparison = Comparison.EQ, entity = SysRole.class, field = "rolename", condition = "this.roleid=id")
    private String roleidRolename;
    /**
    * 关联字段 SysEmployee.empname
    */
    @BindQuery(comparison = Comparison.EQ, entity = SysEmployee.class, field = "empname", condition = "this.empid=id")
    private String empidEmpname;
}